package com.swak.algs.sliding_window.demo2;

import com.alibaba.fastjson.JSONObject;

public class BucketMain {

	public static void main(String[] args) throws InterruptedException {
		BucketArray bucketArray = new BucketArray();
		for (int i = 0; i < 81; i++) {
			Bucket bucket = new Bucket(i);
			bucketArray.addBucket(bucket);
			Thread.sleep(100l);
		}
		System.out.println(JSONObject.toJSONString(bucketArray.getResultData()));
		System.err.println(JSONObject.toJSONString(bucketArray.getResultData()));
	}
}
